package com.xsmous.open.hessian;

import com.caucho.hessian.io.HessianOutput;
import com.xsmous.open.codec.UserBean;
import com.xsmous.open.constants.Constant;

import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @author 雨一直夏灬
 * @since 2020/5/30 11:41 上午
 * 年少无为、码上为生
 */
public class HessianDemo {
    public static void main(String[] args) throws IOException {
        HessianOutput hessianOutput = new HessianOutput(new FileOutputStream(Constant.OutputDir + "hessian.bin"));
        hessianOutput.writeObject(UserBean.getUserBean());
    }
}
